WIP: everything but crypto/tls is integrated