adds restful persistence