modify serial data parse&init function