move filetype detection to yaml