added ability to get info via json