STS protocol support (actually directly ported, but definitely will need rework)