remove logging
these functions should be on the state, not global scope
correct context and add registercontroller method