new version with correct api url