modify rvm.c and rvm.h