added protection against processing non-vmf or invalid vmf files