added zfs pi fuction