fix rules file formats copy