added initial base stitching support
remove constants passed as parameters, added side stitching to base