fixing some cockups after logging fiasco