adding usePolling option