use getInstace for registry