replace verbose option with expand-ast() method