updated to new protocol syntax