use flog
- set read/write timeouts to 30 seconds
- more logging