added check for status code 409: machine already registered