optimize permit downloader, make building manager fully discrete