Revert "removed console.log"

This reverts commit 389940377b978252f93978e910a43c2628099fce.
Revert "added caching for bindings"

This reverts commit b47881b31c96ff332ef94979a9d4da76aef1444e.