Place cooked green beans in casserole. Melt butter in separate dish. Blend flour. Add salt and sugar stirring into paste. Remove from stove. Add onion, sour cream, and cheese. Pour over green beans. Top with flakes (optional). Bake at 350° for 20-30 mins