console commands only in cli or cgi mode