implement SSL layer supporting SNI with dirty debug code :-)