added support for RVM