using do_realize to wait for instantiation