simplified PBS thread adding, but program finishes too soon