todo: state saving -> command line settings.