fix makefile and jobmanager