hmmmm, I had a suspicion that may be the problem and yes there is a z-axis offset that was set using the M212 command and there is a G29 code at the start of my gcode. I just glanced over the link you gave but it looks like it may. I'll take a look at it tonight

thanks for the info