simplify the request class constructor a bit