update extract script

Change-Id: I677fef507ca25e06254b8f753af817c0cd6af150