add support fro get command
restart client when changing download directory
improve threading