added ability to wait for the popco job to finish (I think)