sequence file handling