1. logging
2. build.sh
3. fix racing conditions in test code