replace optmist with command