read/write com thread