work on generating controllers
minor fixes