transport codes from PEx.c to App.c