script modified to have file on log