change api protocol