extract file script