work towards api to execute tasks