use class rather of class_name on factories