initial load code
inital save code