implement probing, and plane definition and z offset calculation