changed demote back to local file