working on api directory