removed pEvent from loadDir