add autobuild hook