[add] file type detection