finalized scripts for file update