create task can now return output and error value