moved read_from_header method to common serial driver base