adding support for saving, loading, and computing diff maps