changed rinari and rvm modes to use package