added code for running muliple jobs