added continuous polling for queue