added logging for diagnostics of #30