api site refactoring