added filesize and filename check