rbenv instead of rvm and refactoring