use json for to get around http/https issues