update magic commands on file with a dedicated parser