test setup, logger options, better loop control