support for express 3.x and 4.x