the command function now gets the job context