added option to ignore specific file extensions