rules template file