work with threads
fix problem with 2 lvl domains