fixed some more types, added log for thread.main failure