change controller class loading

and add debug messages