also hosts need to be a json array