added fileextension checker