fixing bug involving request handler and upon handler