log functions in Utils
updated Session to use the new Json type