setting up dynamic request handling