improved xml import