added the PIN dialog to build procedure