peer, swarm: change function name