130612w 14:51 - done for lib/middleware.js