fixes for logging and fixes for json serialization
force json