make mock request work