refactors to use job arguments