replacing protocal to a local version