implemented and tested relations API changes