add script to support xen