add more logging, and use correct log level