added file & version checking