Parsing persistentFlags properly (mostly)