improved xml interface