fix for new REST calls