remove the g_thread_init, minor fix, dict