cmdmain begin
split actions to separate files