improved handlig of explorer reference

worked on pg functionality