use logger rather than stdout