update to use json instead of detaulf lib