formatting in chunk_hasher
fixed chip-inst to properly handle having variables passed into it