add stream writeBytes