change deal log toPath to fromPath