swarm: add types