Fix guardian api call and reformat