added logging to the compiled plugin