move connection string building into its own function move most of global stuff inside run_main react properly to responses from IDENTIFY command move the job_dir check into its own function
Changed paths: