improved handling of old ES versions and bulk requests