improvements to TextParameterNPCResolver framework