generating xml in threads now