Minor changes

thread sync, queue manager improvements