make connection on optional.