refactoring turnTaker api