first step for json distributions