refactor to exclude pool if $stopm_pool == UNSET