add ssm functionality to mc_socket