dirty fix for creating all types of classes