switched to json input