updating library to support changes made by dan to protocol