changed lazy resolving of instanceClassNames to greedy