add 'fold' command. close #52