factored out json loading from the `load` function
remove some artifacts from an old logging implementation