implemented master register and ping