better constraints for ac; fixes #4