make sure to check for 'controller' key