seg faulting in petoCFg