maybe have different kwargs arg for filename and key?