added temporary callback for XML