implement specific ref checkouts, store build info during build