known_locals not cleared; refactoring arg parsing