add CUSTPACK support