* fixed secure connection bugs