updated the build to be more efficient on repeat builds