check if serial interface is initialized reworked