add miracl common