added handle_xml, removed old crap