- client now can get the file/directory list from server
- add null check when server cannot be reached