fixed classFromString