worker threads for multithreading, use UA_malloc instead of UA_alloc
fix wago patch