refactored block polling and pool setup