update rules file and conf