fix not using callback if json file doesn't exist already