rest service reimplement