add job middlewares