fix dereferencing and some problems with plugin binding
remove logging