start r_main