use flags for config
shutdown on ctrl-c