got rest working