adding custom folding
finished the folding plugin