add as_default argument to connect