add main/ignore (closes #30)