add hf xml import replace functionality