added %wdef
shortened code
ExcludeExtension is not optional