add ifdef around console_