updated labels name resolution

added smart FQN(fully qualified name) resolution feature for context-dependent tokens