fixed changes to dse to reflect bytes written and bytes used (sergio's code additions)