switched to filename instead of bare string