implemented parts of featurealign