added REST functions