clean up on rule loading