updated pi file processor