added some weird XML stuff