registration of api controllers fixed