canonicalize filename.
remove unused plugins