load and save logic added