trying new polling method with timeout