add "type" option for files with non-standard extensions