reading files and mkdir working