parse resource files