move config/blocklist handling out of main