modified arg structure, added xmlwriter
handled merge