support overlap, seq segment refactoring
code cleanup