rearranged API directory structure