have some progress in trellis function, still very bare bones, will most likely change greatly