Wrap sessiony stuff around an output buffer