change how to get parameter from argument to env variable.