edit RM file