using a pre-analysis to clean locals instead of online