modify input file to swarm