edited for windows com port