debug is now read from xml correctly