add environment constraints
[fix #51]