added turn functionality and api tie-ins