fix SNI support