initial commit of some wrapper code for the rest calls