fix function import and added resume of interrupted paused jobs