some cleanup in serialcom