update scripts for reuse