Fix faulty setup logic and class port locks. Improve special_json attempt, add timestamp to json.