remove mutex for enterperise and use threads