use on_source option insteaf of filetype