changed serial_lib init process