use logging module instead of roll-your-own