write rootfile, include any rootfile in .gitignore