added getType method to distinguish client type