modified to ignore .md