defchip and fix chip-inst