r18890: sort the flags out and remove unknown as there's still