coding lib+exe. no more global vars for DBG_PRT.