now dh constructor supports any missing parameters and fixed endpoint/basepoint