add readRefId() to share code logic between v1.0 and v2.0