add run wrapper, move t_printf and t_status into separate translation unit