updated to work with express 4.x