set on_secure properly
use the 'side' p2p server or client