fixed timeouts bulk script
fixed writing to log files