remove unnecessary (and missing) import
bug fixes, logging changes, debugging.
json changes