re-added logging capabilities.