support for multiple threads in .has, .add and .remove