implemented the set write pointer method in dse and fixed the breakdown code for reading errors