add prologues to files