fw: use main as idle thread