created handler for running jobs, started work on persistence