support for priority and fnName in thens