bootstrap: use -i to read and write to the same file