fix serial problems