more flexible handling of the mock request