hack afterbuild