re-added logging