some refractor
reading print message to get the pin
ignores