add automatic choice of bolt length