add string formatter and stack trace utilities