rms build template file