fix: added private methods to prototype. privates were called with scope "undefined"