inlined a function call to avoid the ES5 get undefined problem, see #55