add workarround for opening serial not reliable