Add type field in server