refine switchy-rules