legacy flags lib