updated i/o API due to changes in htslib file type checking mechanism