updating api to match cole's refactoring