add custpack support