adding typeToString helper for debugging goodness