bug fixed: process environment variable