added light protocol and some simplifications