execute task that resturns a result