changing ref from http to https