cmdmain -> cobra