basic XML functionality added