add extraction for whole set of subdomains. add encoding.