adding resource file parsing