use proto lib builder func