adding in some json support