partially fixed for more than 4 user
to be continued with directory iterators