Modified api_controller class methods