refactoring of server api urls