Fix handling of pipelined requests

fixes #10