finally a working log!