match the functionality provided by the Python client