phase1: use buildinfo instead of prepare