added support for reverting files to previous versions