adding json parsing stuff