remove json, add sudoing test code