set preference before resolving