added some interface to the controller