added initial support for priorities on SGE/SLURM