added some functions to requestHandler/server