porting to new mem API
porting to new API
bug fix in AST dumper
fixed warning
porting to new api