type, threads, more macros