first crack at adding modes to reformat, just missing the center option