a side-effect of change 464f77a4e7 is that get_pool is only for interactive mode; minor refactoring