make resources https friendly