[kmseqfile] more refactoring -> type names first