added version checking between local and remote