cloned from https://github.com/stevefry/salesforce_bulk