alter the order of installation to the write_file of the tag and mod