added util classes 
updated added conditions and checks helper utils
fixed thread and threadgroup builders