fixed creation of service endpiont to pass in registrar reference