return connection object when the block is not provides