env is required only if process is not defined