fix up local analysis