removed wrap_dirty_fun, since it is unused, added id/1 functions to jobs