correct timeout
Error handling.