added filetype option.