fix logging
fix test
-2