raw data writing and reading added