polyfill middleware for express, etc.