backwards compatible extraction of flags