added environ lazy formatter for logging errors