updated to comply with express 3.x