create custom streambuf