added support for reference selection in path expressions