start working on api controller