passiveThread server code
added --dir flag
use glog