fix extract and checkPad