adding commands to serialwriter