update prepare for external build scripts