two versions of REST - work in progress