update to fetch correct filetype