WIP: implementing client, getting a bad pointer error when reading from a file.