basic json handle. still to figure out more