added toFile() / toRank() functions for field name display