bugfix: use threadsafe set implementation