still testing json library and fixing bugs