Adaptation of parse_resources and fixing a ,,