Xml output and basic multi thread server