adapted for newer versions of ArangoDB