updates to account for multiple hits on xpath and remove yig go from beginnign of lines