update serial stuff to work slightly better.