add locations and classes rest calls