prototype add from xml, will finish soon