removed unnecessary templates call
switching working to jobs for middleware