fixed bug with importing env