improve filter rules migrating