updated to work with rbenv