refactored some stuff into set2.  commented base 64 encoding implementation