started working on api