2-4 mains debugged