**kwargs for connection.py