cleanup use flags