rest adapter now encodes ids