scratch code, added test ring endpoints