use bimap for env