added debug statement to Threads controller