added mem check to qsub filter