refactor sequencefile format support