added serial drive control as debug function