frank2 : modify filetype at read function