use as middleware. works with express4
breaking version warning