moved base64 functions to separate apacheUtils class