minor style tweak and stacktrace fix