it's no longer needed to use stunnel ;-)
first working version
code is super ugly right now.. please don't judge