working with cross domain - not finished yet