use new API from php-rest-service