implement new xml format and bug fixed --> now working