use sys flags where possible