added reference to core in uart.rs