added file types,fixed crash