change default to `unknown` for connection.type