build_domain and load_domain in external methods