made savejson package-able