s/-p/-m/ in generate.sh