add error handeling for improperly formated plugin json files