fixed serial write