added gsolve, gsolve2, hdr