read control port on a seperate thread