resource file refactor