Add environment constraints

see issue #51