modify routing to be compatible with Express 4.x