adds more functionality to api controller