return flagstat hash for outside use