refactor jobs/reward and lib/nend