added middleware for easy module inclusion