fist attempt to handle errors at the controller