bug fixed in factory getInstance, class name converted to lowercase