add debug to RTLoop