adding rest endpoints