added public methods to change flags