refactor template and disabled auto roll