added mutex with link approach (+ tests)