add config file
implementing timeout detection