sending environment to avoid errors