add resource structure and fix to rvrm class