scheduling middleware added to lib/