debug: separate compilation path for debug build
lib: clear the screen outside ca_mode