used escodegen for function name resolution