add polling sleep