add out_stream.write in RBMCF