added forward declaration instead of ignored nested class (resurrected old code)