some stuff to make json