added to most functions in request_handler