wip: serial read/write