added p2p switch option