add filetype detection for assets