removed use of xdomain. implemented it's technique