refactoring
address #6 - filter based instance pool selection