refactored api urls