cleaned up IR thread a bit