ok now write works but read still doesn't