added REST stuff