added class lookup code from Console.mxml