fix logging selectors
conditional diagnostic printing