modularize
ignore html and txt as well