added more TL input checking.  compiles on CAEN