added cli with folding
fixed period menu