Before merge with alshi: sunday 7 40
working with mutex