major fix to read/write to Arduino serial