make xhr sync