update extract script