fix json interface problems