rm useless lines, force https if possible