adding serial read stuff