rotate logs nightly
add conf.data['min_loop'] to json conf
add errors subcommand for monitoring errors