simplify routing rules