adding rest interface