support for pencore and clean the console