broke out stringify into its own class; may be generally useful.