global "APPTYPE" removed, TBmk.AppType() is enough