added ability to register csj and create debug tokens