dynamic environment in scripts