player reader and writer