* symbol causes exception
added exception handling for file ending in *