added some stuff so that calendar can get the class id