made non-PE_xxx functions private