made changes for supporting diff files