refactoring api folders