fixes for gson
undo gson implementation
remove racy (condition) debug logs that ran in produciton