modified for Xen support
modified for Xen support