add build stop function