add comments documenting clear-locals, clear locals at closure creation when possible