use constant to determine CLI mode rather than sapi name