added serial write commands