implement -I to ignore some files
fix clear_elements()