snapshot-4 - replaced BASE_URL with global var