add SC_WRITE implemention for the console