path.join BASE, fix JSON functions