working selection flags -- i think