removed unwanted local file writing