make usage map json before printing