adding REST capabalities