fixing problem passing multiple arguments to environment