added xdomain option