Broken, basically just a poc showing what a pita it is to get this to work with TLS. Do not merge