handles file not found for input correctly