pass in filename, not file