extract out pool creation. windows compat