updated read - functions - saveing to ram