remove log endpoints
remove imports
+ add missing JSON document processing