bug fix: classes is now set as a separate attribute