update to adjust with latest swarm library