flushing all objects on save