read resource files