updated to call script for environment