added check for existing files