write asunc functions to delegate work to child processes