added periods endpoint