made Table::save more flexible