add the savebuffer and save position