split to dock & entry file,add client test