remove dependency on json