updates and tweaks to pipeline to work with slurm