add evaluation func based on filetype