fixed bugs in serial communication