works but with timeout