fixes for SNI