added local alignment stuff