moved ToString() here from utils.h