add support for 'timeout' in config file