avoid using deprecated parent.env