Fixing changes wrought by updating to express 4