#5 fixed bugs in the req-response framework