moved parse enclosure to resourcedir
cleanup