adding timeouts to ballot casting, still not working fine