fix error logging and remove the StringFormat crutch class