modified xpath queries for metadata