now using AST like approach
working on dbpath