refactored api to work with new task values