fixed serial data parsing