fix logging for real