refactored jobs to use ruby scripts