further changes for deleting and reloading