refactored locals out into TLDs