fix rules and add diff script