adding some REST endpoints