updated tophat app to better handle PE jobs/runs