base64 and a few fixes
access all functions from everywhere
much better code