updated handling of requests for tasks