renames *_seq -> seq_*
fixes a memory leak
fixes further memory leak and nullptr deref.
skip broken sequences