implement visibility option in get and ping operation