api controllers fixed