fixing use of status as a namespace in tsmain.cpp