split checkupdate and rebuild