job handling, still buggy with negative target numbers