improve setup to install rbenv
remove unused function