update code for Express 4