child process queue logic in own module