mainxml client unit