some improvements to feature extractor