require explicit tofile arg