leaving out crain variable that does not exist, moved working directory and adjusted sbatch scripts