pattern matching fixed in request object