correct parsing of extract command