remove serialport dependency from main app