updates for express 4 compatibility