updates to write out logs during build as well