added rest utils, including for mock & test