added some stuff to get controller