add diff to autobuild (with some hacks)