fix to part of extract_features- may still have a bug
fix bug, still problem with source/parse discrepency