begin implementing REST JSON API