Fixes to single thread. Enable json spaces on API server