expose middleware to requires of the main module