box: added better jointing generation