improve xml topology