added queue and job control