add a backward compatible method write_using