add subdomains, fix bugs with concurrency