refactored section api and added test