added basic constraints building functionality