fix "dir" command
improve getfromserver