allow to pass symbol instead of pool class