added error handling if no serial cable is connected