added ability to set anchors/ref in parser or  to get it