use logging to avoid unicode problems