fix notify, refactor main job file for use with different parametrs