refactoring hsp parsing; remove adapter interfaces