moved timeout to global var; later, refactor to command line or config file option...