add debug for poll