added secured to the json calls only