modifies scripts for local environments