moving pkg request out of child process