work with directory