updated to use json by default