fixing up some of serial library