save and load constraints