fixes for json library