add some simple logging
fix test