initial version
cosmetic change
add encode/decode routines based on base64