default to class-name if present