lsw: reworked flags, watch out !