updated to new version apis resource