add id to exam and configure custom repository service