changes for express4 compatibility