added rvm name space and bug fixes